<html><head><title>CreateMaterial</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CreateMaterial()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>CreateMaterial</b></font>(#Material, TextureID)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates a new material using the specified texture. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Material</i></td>
<td width="90%"> 
A number to identify the new material. 
<a href="../reference/purebasic_objects.html">#PB_Any</a> can be used to auto-generate this number. 

</td></tr>
<tr><td><i>TextureID</i></td>
<td> 
The texture to use. A valid 'TextureID' can be easily obtained with <a href="../texture/textureid.html">TextureID()</a>. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero if the material was successfully created, zero otherwise. If <font color="#924B72">#PB_Any</font> was used 
for the #Material parameter then the generated number is returned on success. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=countmateriallayers.html>CountMaterialLayers()</a> - <a href=index.html>Material Index</a> - <a href=disablemateriallighting.html>DisableMaterialLighting()</a> ->

</body></html>